<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">


        <div class="layui-form-item">
            <div class="layui-form-item">
                <label class="layui-form-label">是否作废</label>

                <div class="layui-input-block">
                    <input type="checkbox" name="status" value="on"
                           {if $row.status !="作废"} checked="" {/if}
                           {if $row.status =="已完成"} disabled="" {/if}
                    lay-skin="switch" lay-text="生效|作废">
                </div>
            </div>
        </div>
        <div class="layui-form-item">

            <input type="hidden" name="now_status" value="{$row.status}">

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">文本域</label>
                <div class="layui-input-block">
                    <textarea name="cancel_reason" {if $row.status =="已完成"} disabled="" {/if}
                    class="layui-textarea">{if $row.status =="已完成"}已经完成的不允许作废 {/if}</textarea>
                </div>
            </div>

        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>


